const fs = require('fs');
const people = [{
        id: 1,
        name: '11'
    },
    {
        id: 2,
        name: '22'
    },
    {
        id: 3,
        name: '33'
    },
];
fs.writeFileSync('./people.json', JSON.stringify(people));